Use InsertByQuery
to 'batch' insert your domain objects directly to the database via a select subquery. At runtime DomainObjects translates an InsertByQuery
instance into a SQL INSERT INTO...SELECT
statement.
For a list of all members of this type, see InsertByQuery<InsertIntoClass,SelectFromClass> Members.
System.Object
BatchStatement
InsertByQuery<InsertIntoClass,SelectFromClass>
The following unit test demonstrates the usage of the InsertByQuery
class: see InsertTests.ExecuteInsert().
Namespace: DomainObjects.Facade.Command
Assembly: DomainObjects.Core (in DomainObjects.Core.dll)
InsertByQuery<InsertIntoClass,SelectFromClass> Members | DomainObjects.Facade.Command Namespace